//
//  SSFirstSell.m
//  textDemo
//
//  Created by Esther on 2017/2/20.
//  Copyright © 2017年 Esther. All rights reserved.
//

#import "SSFirstSell.h"
#import "SSNetworkTools.h"

@implementation SSFirstSell

+ (void)loadFirstSellData:(void (^)(NSArray<SSFirstSell *> *))completeBlock{
    NSDictionary *parameters = @{@"call" : @2};
    [[SSNetworkTools shared]ss_postLoadData:@"loveBeen/firstSell.json.php" parameters:parameters completeBlock:^(id responseObject, NSError *error) {
        if (error != nil) {
            return ;
        }
        
        if (completeBlock) {
            NSArray *arr = responseObject[@"data"];
            NSMutableArray *arrM = [NSMutableArray array];
            
            for (NSDictionary *dict in arr) {
                
                SSFirstSell *firstSell = [SSFirstSell yy_modelWithDictionary:dict];
                [arrM addObject:firstSell];
                
            }
            completeBlock(arrM.copy);
        }
        
    }];
    
    
    
}
@end
